<%-- 
    Document   : delivery-content
    Created on : May 20, 2011, 3:35:04 PM
    Author     : Stephen Moulton
--%>
<div class="page-title">Delivery Report</div>
<%
    int tracknum = 0;
     
    try{
        tracknum = Integer.parseInt(request.getParameter("t"));
    }
    catch(Exception e){
        //nothing
    }
    
    if(tracknum == 1)
    {
       out.println("<div class=\"subcriber-red\">Invalid address</div>");            
    }
    else if(tracknum == 2){
            out.println("<div class=\"subcriber-red\">Invalid consumer</div>");
    }
    else if(tracknum == 4){
           out.println("<div class=\"subcriber-red\">Invalid item</div>");
    }
    else if(tracknum == 4){
           out.println("<div class=\"subcriber-red\">Invalid tracking number</div>");
    }
    else{
         out.println("<div class=\"subcriber-green\">You delivery tracknumber is : " + tracknum + "</div>");  
    }
   
%>